package com.example.an.service_exm;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by an on 2017/9/22.
 */
public class Recevier extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Intent i=new Intent(context,Service.class);
        context.startService(i);
    }
}
